XX=g++
CFLAGS=-g -O2 -Wall -fPIC -Wno-deprecated 

INC=-I../include
LIB=-L../lib -lreactor 
OBJ=./out/
OBJS = $(addprefix $(OBJ), $(addsuffix .out, $(basename $(wildcard *.cpp))))

all:$(OBJS)

$(OBJ)%.out:%.cpp
	@mkdir -p $(shell dirname $@)
	$(CXX) -o $@ $(CFLAGS)  $< $(INC) $(LIB)
clean:
	-rm -rf *.o hello_lars
